package ru.gerunn.silent.server;

import ru.gerunn.silent.common.ConsoleReader;
import ru.gerunn.silent.common.ConsoleWriter;
import ru.gerunn.silent.common.RW;

public class ConsoleServerApp {

	public static void main(String[] args) {
		System.setProperty("javax.net.ssl.keyStore", "keystore.jks");
		System.setProperty("javax.net.ssl.keyStorePassword", "Hjz3&5");

		Server server = new Server();
		server.setLogToConsole(true);
		server.start();

		RW consoleRW = new RW(new ConsoleReader(), new ConsoleWriter());
		consoleRW.start();

	}

}
